package com.linkage.lcims.base.po.business;

import java.io.Serializable;
import java.math.BigDecimal;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="BD_SERVICE"
 *     
*/
@SuppressWarnings("serial")
public class BdService implements Serializable {

    /** identifier field */
    private BigDecimal serviceid;

    /** persistent field */
    private String servicename;

    /** persistent field */
    private String authorattr;

    /** persistent field */
    private BigDecimal status;

    /** nullable persistent field */
    private String description;

    /** full constructor */
    public BdService(BigDecimal serviceid, String servicename, String authorattr, BigDecimal status, String description) {
        this.serviceid = serviceid;
        this.servicename = servicename;
        this.authorattr = authorattr;
        this.status = status;
        this.description = description;
    }

    /** default constructor */
    public BdService() {
    }

    /** minimal constructor */
    public BdService(BigDecimal serviceid, String servicename, String authorattr, BigDecimal status) {
        this.serviceid = serviceid;
        this.servicename = servicename;
        this.authorattr = authorattr;
        this.status = status;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.math.BigDecimal"
     *             column="SERVICEID"
     *         
     */
    public BigDecimal getServiceid() {
        return this.serviceid;
    }

    public void setServiceid(BigDecimal serviceid) {
        this.serviceid = serviceid;
    }

    /** 
     *            @hibernate.property
     *             column="SERVICENAME"
     *             length="20"
     *             not-null="true"
     *         
     */
    public String getServicename() {
        return this.servicename;
    }

    public void setServicename(String servicename) {
        this.servicename = servicename;
    }

    /** 
     *            @hibernate.property
     *             column="AUTHORATTR"
     *             length="255"
     *             not-null="true"
     *         
     */
    public String getAuthorattr() {
        return this.authorattr;
    }

    public void setAuthorattr(String authorattr) {
        this.authorattr = authorattr;
    }

    /** 
     *            @hibernate.property
     *             column="STATUS"
     *             length="22"
     *             not-null="true"
     *         
     */
    public BigDecimal getStatus() {
        return this.status;
    }

    public void setStatus(BigDecimal status) {
        this.status = status;
    }

    /** 
     *            @hibernate.property
     *             column="DESCRIPTION"
     *             length="50"
     *         
     */
    public String getDescription() {
        return this.description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("serviceid", getServiceid())
            .toString();
    }

}
